package com.wontube.smr.bo.sites.analizers;

import com.wontube.core.pub.ServerContext;
import com.wontube.smr.client.model.vo.VideoFiles;


/**
 * @author yuechao
 *　
 *　视频地址分析职责链
 *
 */
public interface IVideoAnalizer {
	/**
	 * 值越小，越优先
	 * 
	 * @return
	 */
	public int getPriority();
	
	/**
	 * 站点名
	 * 
	 * @return
	 */
	public String getSiteName();
	
	/**
	 * 是否可以处理
	 * 
	 * @param url
	 * @return
	 */
	public boolean canProcess(String url);
	
	/**
	 * 获取视频地址
	 * 
	 * @param url
	 * @return
	 * @throws RuntimeException
	 */
	public boolean getAllVideos(ServerContext context, VideoFiles videoFiles, String url);
}
